import java.util.concurrent.locks.LockSupport;

public class LockSupportPark {
    public static void main(String[] args) {
        System.out.println("main线程开始执行");
        // 是当前线程获取许可证
        LockSupport.unpark(Thread.currentThread());
        // 再调用park方法
        LockSupport.park();
        System.out.println("main线程结束执行");
    }
}
